home *** CD-ROM | disk | FTP | other *** search
- KA9Q modified dialer (version 911229 (gt 1.3)).
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- The new dialer script file is composed of two sections: "configure" and
- "execute". As its name suggests, the "configure" section consists of
- various configuration commands. The execute section is much the same as
- the current dialer script file but has some new commands.
-
- The configure commands are as follows:
-
- configure: Specifies the start of the configuration
- section. Must be the first non-comment in the
- file.
- init <string> Specifies the modem initialization string.
- dial_cmd <string> Specifies the modem dial command.
- ld_code <string> Specifies a long distance code.
- number <string> Specifies a telephone number. There may be
- multiple "number" commands. The numbers will be
- used in turn if retries are specified.
- retries <count> Specifies the number of times the execute script
- is to be retried if it fails. Default 1.
-
- The execute commands are the existing dialer script commands plus the
- following:
-
- execute: Specifies the start of the execution section.
- This must precede any other execution section
- commands.
- init Initialize the modem.
- dial Dial the next number in the list.
- cwait <milliseconds> [ <success string> <failure string>
- [<failure string> ...] ] [ speed ]
- The same as the original "wait" command except
- that if <failure string> is seen before <success
- string> then the dial attempt will be deemed to
- have failed and the dialer program will either
- retry the execute script from the start or give
- up (depending on the retry count).
-
- Here's an example dialer script:
-
- ----------------------------------------------------------------------------
- #
- configure:
- #
- init "ATZ"
- dial_cmd "ATDT"
- ld_code "131,,0123456789012"
- number "0813466209"
- number "0813490016"
- retries 5
- #
- execute:
- #
- # Toggle DTR.
- control down
- wait 2000
- control up
- wait 2000
- #
- # Initialize the modem.
- init
- wait 3000 "OK"
- #
- # Dial and wait for connection.
- dial
- cwait 45000 "CONNECT" "BUSY" "NO CARRIER"
- #
- # Now log in.
- wait 5000 "gin:"
- wait 1000
- send "slip\r"
- wait 10000 "word:"
- send "sl8250\r"
- wait 20000 "sliplog:"
- send "rundart\r"
- ----------------------------------------------------------------------------
-
- Giles Todd (gt@demon.co.uk)
- 6 May 1992
-